{% extends "layout.html.twig" %}
{% form_theme form 'AcmeEventBundle:Form:fields_seteventuser.html.twig' %}
{% block content %}

			<h2>Event Anmeldung</h2>

			{% for flashMessage in app.session.flashbag.get('information') %}
			<div class="row">
				<div class="col-md-12" style="color:green;">
			    	{{ flashMessage }}
			    </div>
			</div>
			{% endfor %}

			<div class="row">
				<div class="col-md-12" style="font-size:16px;"><strong>An- und Abmeldung für den Event vom  {{ information.datum|date('d-m-Y') }}</strong></div>
			</div>
			<span style="color:green;">
				{% if inscription.participate == 0 %}
					Leider bist Du für diesen Event nicht dabei 
				{% elseif inscription.participate == 1 %}
					Du bist für diesen Event dabei
				{% else %}
					Du hast Dich noch nicht an/abgemeldet 
				{% endif %}
			</span>							
			<div class="row">
				<div class="col-md-12">&nbsp;</div>
			</div>							
			{{ form_start(form) }}
			    {{ form_errors(form) }}

				<div class="row">
					<div class="col-md-12"><strong>Bitte ausfüllen</strong></div>
				</div>							
				<hr/>
			
				<div class="row">
					<div class="col-md-12">
					    <div class="form-group">
					        {{ form_errors(form.participate) }}
					        {{ form_row(form.participate) }}
					    </div>
					</div>
				</div>							
			
				<div class="row">
					<div class="col-md-12">
					    <div class="form-group">
					        {{ form_label(form.answer) }}
					        {{ form_errors(form.answer) }}
					        {{ form_widget(form.answer) }}
					    </div>
					</div>
				</div>							

			    <div class="row">
			    	<div class="col-md-6">
			    		<div class="form-group">
			        		{{ form_widget(form.save, { attr: {'class':'btn btn-default'}} ) }}
			        	</div>
			        </div>
		        	<div class="col-md-6" style="text-align:right;">
		        		<a class="btn btn-default" type="button" href="{{ path('overview_events') }}">Zurück zur Übersicht</a>
		        	</div>
			        
			    </div>
			
			{{ form_end(form) }}
			
{% endblock %}			